/ Assembly List / LJCNetCommon / HTMLBuilder / HTMLBegin

Namespace - LJCNetCommon


Parameters
textState - The current text state values.
copyright - The copyright array.
fileName - The HTML file name.

Returns

The added HTML beginning text.

Syntax

C#
public String HTMLBegin(TextState textState, String[] copyright = null, String fileName = null)

Creates the HTML beginning up to and including head;.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var copyright = new string[]
{
    "Copyright (c) First Line",
    "Second Line",
};
var fileName = "File.html";
hb.HTMLBegin(textState, copyright, fileName);
var result = hb.ToString();

// result:

// result:
// <!DOCTYPE html>
// <!-- Copyright (c) First Line -->
// <!-- Second Line -->
// <!-- File.html -->
// <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
// <head>

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.